package com.three.controller;


import com.three.service.AttendanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class AttendanceController {
    @Autowired
    private AttendanceService attendanceService;



    @RequestMapping(value = "/attendanceListByStudent")
    public Object attendanceList(@RequestBody Map<String, Object> map) {
        Integer id = (Integer) map.get("id");
        Integer pageIndex = (Integer) map.get("pageIndex");
        Integer pageSize = (Integer) map.get("pageSize");
        String date = (String) map.get("date");
        return attendanceService.attendanceList(id, pageIndex, pageSize,date);
    }
}
